﻿using System;
using System.Windows.Forms;

namespace TextEditor
{
    

    public class A_Cut : A_Action
    {
        public A_Cut()
        {
            base.HotKey = Keys.Control | Keys.X; //test
        }

        public override string ActionName()
        {
            return "cut";
        }

        public override bool Execute()
        {
            base.myOwnerDocument._Cut();
            return true;
        }

        public override bool isEnable()
        {
            return (base.myOwnerDocument.CanModify() && base.myOwnerDocument.Content.HasSelected());
        }
    }
}

